<template>
	<view class="container">
		社团详情页
		<uni-card :title="clubName">
			<image :src="clubPicture" style="width: 100%;height: 200px;"></image>
			<text>{{clubInfo}}</text>
			<view style="color: #007AFF;">创建人:{{clubStuName}}</view>
			<view style="color: #FF5A5F;">创建时间:{{clubCreateTime}}</view>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				clubId:'',
				clubName:'',
				clubInfo:'',
				clubPicture:'',
				clubStuNumber:'',
				clubStuName:'',
				clubStatus:'',
				clubCreateTime:''
			}
		},
		
		onLoad(option) {
			this.clubId=option.clubId
		},
		
		onShow() {
			var _this=this
			uni.request({
				url:'http://localhost:9000/club/selectClubByCid',
				method:'GET',
				data:{
					"clubId":_this.clubId
				},
				responseType:'application/json',
				success(res) {
					_this.clubName=res.data.clubName,
					_this.clubInfo=res.data.clubInfo,
					_this.clubPicture=res.data.clubPicture,
					_this.clubStuNumber=res.data.clubStuNumber,
					_this.clubStuName=res.data.clubStuName,
					_this.clubStatus=res.data.clubStatus,
					_this.clubCreateTime=res.data.clubCreateTime
				}
			})
		},
		
		methods: {
			
		}
	}
</script>

<style>

</style>
